<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>
<%@ page import="com.productmodule.dao.*" %>
<%@ page import="com.productmodule.bean.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<% String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/"; %> 
<html>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<script type="text/javascript">
	
	function setValue(va){
		alert("价格=="+va);
	}
</script>
  <table>
  <tr><td>
	<c:forEach items="${sessionScope.tbProductList}" var="tbProduct" varStatus="status">
		<input type="checkbox" name="${tbProduct.productId }" id="${tbProduct.productId }" value="${tbProduct.productName }" onload="setValue(${tbProduct.productId })"/>${tbProduct.productName }
		<input type="text"  size="5" value=""/>
	</c:forEach>
  </td></tr>
  </table>
  </body>
</html>
